

<?php


$setor = 'frutas';
$nome =  'foto1.jpg';
$a=1;

echo "<div class=\"img\">
<a href=\"#\" name=\"span\" class=\"z\" id=\"e$a\" ><img src=\"docs/$setor/$arquivo[nome]\"  class=\"i\" id=\"t$a\" /></a>
</div>
<div id=\"sss\">
<span class=\"sp\" id=\"sp$a\" onclick=\"clicar('sp$a', 'e$a');\">Parte-$a -</span><br />
</div>
";
;
echo  date("h/m/s", strtotime($data));

?>
<script language="JavaScript" src="js/jquery-1.5.1.js" type="text/javascript"></script>
<script type="text/javascript">
function  tempo(){
$.ajax({
url : "document1.php",
success : function (data) {
$("#mostratempo").html(data);
}
});
setTimeout("tempo()", 1000);
}
</script>
<body onload="tempo();">

<div id="mostratempo"></div>


         </script>
